Factories Pulling Too Many Dependencies ^^^^^ **Definition:** * Calling one factory may silently create many associated records, which accumulates to make the whole test suite slow (more on that later) **Code Example:** .. code-block:: ruby FactoryBot.define do factory :comment do post body "groundbreaking insight" end end **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `Rails Testing Antipatterns: Fixtures and Factories `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`sync;1em`